package com.css.dzj.zfjg.modules.admpenalty.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Objects;

/**
 * 行政处罚实体
 * @Author WT
 * @Date 2020/5/25
 */
@Entity
@Table(name = "JG_ADMINISTRATIVE_PENALTY", schema = "DZJZFJG", catalog = "")
public class AdmPenaltyEntity {
    //主键
    private String id;
    //处罚行为名称
    private String enforceName;
    //实施机构
    private String enforceOrganization;
    //监管对象
    private String enforceObject;
    //违法事实
    private String breakFact;
    //处罚依据
    private String enforceGist;
    //是否进行法制审核，1是，0是否
    private String isLegalCheck;
    //处罚结果
    private String disposeResult;
    //立案时间
    private Date registerTime;
    //案例分析
    private String caseAnalyze;
    //任务状态
    private String taskStatus;
    //创建人
    private String createUser;
    //创建时间
    private Date createTime;
    //修改人
    private String updateUser;
    //修改时间
    private Date updateTime;
    //0未删除，1删除
    private String flag;
    //是否经本单位领导审核
    private String isSubmit;
    //案件类别
    private String caseCategory;
    //案件来源
    private String caseSource;
    //案件基本情况
    private String caseInformation;
    //处罚种类
    private String penaltyCategory;
    //罚款金额
    private BigDecimal penaltyMoney;
    //是否退回，1是退回，0是未退回
    private String isBack;
    //退回人
    private String backUser;
    //退回时间
    private Date backTime;
    //退回机构
    private String backOrganization;
    //退回原因
    private String backCause;
    //记录唯一标识
    private String recordUniqueIdentity;
    //实施机构地址
    private String enforceOrganizationSite;
    //组织机构
    private  String penOrgname;
    //其他输入文本框
    private  String otherResult;
    //案件类别文本输入框
    private String otherCase;

    @Id
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "enforce_Name")
    public String getEnforceName() {
        return enforceName;
    }

    public void setEnforceName(String enforceName) {
        this.enforceName = enforceName;
    }

    @Basic
    @Column(name = "enforce_Organization")
    public String getEnforceOrganization() {
        return enforceOrganization;
    }

    public void setEnforceOrganization(String enforceOrganization) {
        this.enforceOrganization = enforceOrganization;
    }

    @Basic
    @Column(name = "enforce_Object")
    public String getEnforceObject() {
        return enforceObject;
    }

    public void setEnforceObject(String enforceObject) {
        this.enforceObject = enforceObject;
    }

    @Basic
    @Column(name = "break_Fact")
    public String getBreakFact() {
        return breakFact;
    }

    public void setBreakFact(String breakFact) {
        this.breakFact = breakFact;
    }

    @Basic
    @Column(name = "enforce_Gist")
    public String getEnforceGist() {
        return enforceGist;
    }

    public void setEnforceGist(String enforceGist) {
        this.enforceGist = enforceGist;
    }

    @Basic
    @Column(name = "is_Legal_Check")
    public String getIsLegalCheck() {
        return isLegalCheck;
    }

    public void setIsLegalCheck(String isLegalCheck) {
        this.isLegalCheck = isLegalCheck;
    }

    @Basic
    @Column(name = "dispose_Result")
    public String getDisposeResult() {
        return disposeResult;
    }

    public void setDisposeResult(String disposeResult) {
        this.disposeResult = disposeResult;
    }

    @Basic
    @Column(name = "register_Time")
    @JsonFormat(shape= JsonFormat.Shape.STRING,pattern="yyyy-MM-dd",timezone="GMT+8")
    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    @Basic
    @Column(name = "case_Analyze")
    public String getCaseAnalyze() {
        return caseAnalyze;
    }

    public void setCaseAnalyze(String caseAnalyze) {
        this.caseAnalyze = caseAnalyze;
    }

    @Basic
    @Column(name = "task_Status")
    public String getTaskStatus() {
        return taskStatus;
    }

    public void setTaskStatus(String taskStatus) {
        this.taskStatus = taskStatus;
    }

    @Basic
    @Column(name = "create_User")
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    @Basic
    @Column(name = "create_Time")
    @JsonFormat(shape= JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm",timezone="GMT+8")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "update_User")
    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    @Basic
    @Column(name = "update_Time")
    @JsonFormat(shape= JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm",timezone="GMT+8")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "flag")
    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    @Basic
    @Column(name = "is_Submit")
    public String getIsSubmit() {
        return isSubmit;
    }

    public void setIsSubmit(String isSubmit) {
        this.isSubmit = isSubmit;
    }


    @Basic
    @Column(name = "case_Category")
    public String getCaseCategory() {
        return caseCategory;
    }

    public void setCaseCategory(String caseCategory) {
        this.caseCategory = caseCategory;
    }

    @Basic
    @Column(name = "case_Source")
    public String getCaseSource() {
        return caseSource;
    }

    public void setCaseSource(String caseSource) {
        this.caseSource = caseSource;
    }

    @Basic
    @Column(name = "case_Information")
    public String getCaseInformation() {
        return caseInformation;
    }

    public void setCaseInformation(String caseInformation) {
        this.caseInformation = caseInformation;
    }

    @Basic
    @Column(name = "penalty_Category")
    public String getPenaltyCategory() {
        return penaltyCategory;
    }

    public void setPenaltyCategory(String penaltyCategory) {
        this.penaltyCategory = penaltyCategory;
    }

    @Basic
    @Column(name = "penalty_Money")
    public BigDecimal getPenaltyMoney() {
        return penaltyMoney;
    }

    public void setPenaltyMoney(BigDecimal penaltyMoney) {
        this.penaltyMoney = penaltyMoney;
    }

    @Basic
    @Column(name = "is_Back")
    public String getIsBack() {
        return isBack;
    }

    public void setIsBack(String isBack) {
        this.isBack = isBack;
    }

    @Basic
    @Column(name = "back_User")
    public String getBackUser() {
        return backUser;
    }

    public void setBackUser(String backUser) {
        this.backUser = backUser;
    }

    @Basic
    @Column(name = "back_Time")
    public Date getBackTime() {
        return backTime;
    }

    public void setBackTime(Date backTime) {
        this.backTime = backTime;
    }

    @Basic
    @Column(name = "back_Organization")
    public String getBackOrganization() {
        return backOrganization;
    }

    public void setBackOrganization(String backOrganization) {
        this.backOrganization = backOrganization;
    }

    @Basic
    @Column(name = "back_Cause")
    public String getBackCause() {
        return backCause;
    }

    public void setBackCause(String backCause) {
        this.backCause = backCause;
    }
    @Basic
    @Column(name = "record_Unique_Identity")
    public String getRecordUniqueIdentity() {
        return recordUniqueIdentity;
    }

    public void setRecordUniqueIdentity(String recordUniqueIdentity) {
        this.recordUniqueIdentity = recordUniqueIdentity;
    }

    @Basic
    @Column(name = "enforce_Organization_Site")
    public String getEnforceOrganizationSite() {
        return enforceOrganizationSite;
    }

    public void setEnforceOrganizationSite(String enforceOrganizationSite) {
        this.enforceOrganizationSite = enforceOrganizationSite;
    }

    @Basic
    @Column(name = "pen_Orgname")
    public String getPenOrgname() {
        return penOrgname;
    }

    public void setPenOrgname(String penOrgname) {
        this.penOrgname = penOrgname;
    }

    @Basic
    @Column(name = "other_Result")
    public String getOtherResult() {
        return otherResult;
    }

    public void setOtherResult(String otherResult) {
        this.otherResult = otherResult;
    }

    @Basic
    @Column(name = "other_Cate")
    public String getOtherCase() {
        return otherCase;
    }

    public void setOtherCase(String otherCase) {
        this.otherCase = otherCase;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AdmPenaltyEntity that = (AdmPenaltyEntity) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(enforceName, that.enforceName) &&
                Objects.equals(enforceOrganization, that.enforceOrganization) &&
                Objects.equals(enforceObject, that.enforceObject) &&
                Objects.equals(breakFact, that.breakFact) &&
                Objects.equals(enforceGist, that.enforceGist) &&
                Objects.equals(isLegalCheck, that.isLegalCheck) &&
                Objects.equals(disposeResult, that.disposeResult) &&
                Objects.equals(registerTime, that.registerTime) &&
                Objects.equals(caseAnalyze, that.caseAnalyze) &&
                Objects.equals(taskStatus, that.taskStatus) &&
                Objects.equals(createUser, that.createUser) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(updateUser, that.updateUser) &&
                Objects.equals(updateTime, that.updateTime) &&
                Objects.equals(flag, that.flag) &&
                Objects.equals(isSubmit, that.isSubmit) &&
                Objects.equals(caseCategory, that.caseCategory) &&
                Objects.equals(caseSource, that.caseSource) &&
                Objects.equals(caseInformation, that.caseInformation) &&
                Objects.equals(penaltyCategory, that.penaltyCategory) &&
                Objects.equals(penaltyMoney, that.penaltyMoney) &&
                Objects.equals(isBack, that.isBack) &&
                Objects.equals(backUser, that.backUser) &&
                Objects.equals(backTime, that.backTime) &&
                Objects.equals(backOrganization, that.backOrganization) &&
                Objects.equals(backCause, that.backCause) &&
                Objects.equals(recordUniqueIdentity, that.recordUniqueIdentity) &&
                Objects.equals(enforceOrganizationSite, that.enforceOrganizationSite) &&
                Objects.equals(penOrgname, that.penOrgname) &&
                Objects.equals(otherResult, that.otherResult) &&
                Objects.equals(otherCase, that.otherCase);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, enforceName, enforceOrganization, enforceObject, breakFact, enforceGist, isLegalCheck, disposeResult, registerTime, caseAnalyze, taskStatus, createUser, createTime, updateUser, updateTime, flag, isSubmit, caseCategory, caseSource, caseInformation, penaltyCategory, penaltyMoney, isBack, backUser, backTime, backOrganization, backCause, recordUniqueIdentity, enforceOrganizationSite, penOrgname, otherResult, otherCase);
    }
}
